/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cn.itxiaoq.imgConvert;

/**
 *
 * @author xiaoqiang
 */
public class FileUtils {
    
    /**
     * 是否是JPG文件
     * @param fileName
     * @return 
     */
    public static boolean isJpgImg(String fileName){
        boolean isImg = false;
        
        String name = fileName.substring( fileName.lastIndexOf("."), fileName.length());
//        System.out.println("name:"+name);
        if(name != null && ".JPG".equals(name.toUpperCase()))
            isImg = true;
        return isImg;
    }
}
